﻿<!DOCTYPE HTML>
<html lang="en">
<head>
	<title>图片去水印</title>
	<!-- Meta tag Keywords -->
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta charset="UTF-8" />
	<meta name="keywords" content=""/>
	<style type="text/css">
	html, body { height:100%; overflow:hidden; }
	body { margin:0; }
</style>
<script src="http://open.web.meitu.com/sources/xiuxiu.js" type="text/javascript"></script>
<!-- 提示:: 如果你的网站使用https, 将xiuxiu.js地址的请求协议改成https即可 -->
<script type="text/javascript">
window.onload=function(){
  /*第1个参数是加载编辑器div容器，第2个参数是编辑器类型，第3个参数是div容器宽，第4个参数是div容器高*/
  xiuxiu.setLaunchVars("customMenu", ["decorate"]);
  xiuxiu.embedSWF("altContent",3,"100%","100%");
  
  //修改为您自己的图片上传接口
  xiuxiu.setUploadURL("http://user.ezalibaba.com/products/meituupload.php?path=<?php echo $_GET["img"];?>");
  xiuxiu.setUploadType(2);
  xiuxiu.setUploadDataFieldName("Filedata");
  xiuxiu.onInit = function ()
  {
    xiuxiu.loadPhoto("http://user.ezalibaba.com<?php echo $_GET["img"];?>");//修改为要处理的图片url
  }
  xiuxiu.onUploadResponse = function (data)
  {
    alert(data);
  }
}
</script>
</head>

<body>
	<div id="altContent">
	<h1>美图秀秀</h1>
    </div>
</body>
</html>